package com.imooc.ecommerce.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 简单的商品信息：封面
 * @author zhangshao
 * @since 2023/11/29 22:15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "简单的商品信息")
public class SimpleGoodsInfo {
    @ApiModelProperty(value = "商品表主键id")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品图片")
    private String goodsPic;

    @ApiModelProperty(value = "商品价格,单位:分")
    private Integer price;

    public SimpleGoodsInfo (Long id){
        this.id = id;
    }
}
